/* eslint-disable no-var */
'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx } = this;
    var res = await ctx.service.article.find('619c9aeb0ce7e641b418cd7a');
    console.log(res);
    ctx.body = {
      code: 200,
      msg: 'hello world',
    };
  }
}

module.exports = HomeController;
